
import java.sql.*;
import java.util.*;
class JdbcDemo9 {
    public static void main(String args[]) throws Exception
    {
        Scanner scan = new Scanner(System.in);
        Class.forName("oracle.jdbc.driver.OracleDriver");
        Connection cn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system", "oracle");
        System.out.println("input empno");
        int eno = scan.nextInt();
        System.out.println("input ename");
        String ename = scan.next();
        System.out.println("input salery");
        Float sal = scan.nextFloat();
        String cmd = "insert into employee values("+eno+","+"'"+ename+","+""+sal+")";
        Statement st = cn.createStatement();
        int count = st.executeUpdate(cmd);
        System.out.println(count);
    
    }
          
    
}
